Runtime parameter is missing in Azure CLI - #41
Open
rramoscabral wants to merge 3 commits into
Open
Conversation
Runtime is mandatory when creating an Azure WebApp using AZ CLI.
Runtime is mandatory when creating an Azure WebApp using AZ CLI.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates advanced lab instructions to include a runtime stack when creating Azure App Service Web Apps via Azure CLI, addressing the reported requirement that az webapp create needs an explicit runtime.
Changes:
- Added
--runtimetoaz webapp createcommands in three advanced instruction guides. - Standardized the runtime value used across those instructions.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| Instructions/advanced/08-monitor-application-performance-azure-load-testing.md | Adds --runtime to the Web App creation command in the load testing lab. |
| Instructions/advanced/04-control-deployments-release-gates.md | Adds --runtime to both DevTest and Prod Web App creation commands. |
| Instructions/advanced/03-configure-pipelines-code-yaml.md | Adds --runtime to the Web App creation command in the YAML pipelines lab. |
Suppressed comments (1)
Instructions/advanced/04-control-deployments-release-gates.md:138
- Same issue as the DevTest web app: for a Windows web app,
DOTNETCORE|10.0is the Linux runtime-stack format and mismatches the .NET 8 app used in the labs. Use a Windows runtime identifier (for exampledotnet:8).
az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n RGATES$SUFFIX-Prod --runtime "DOTNETCORE|10.0"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ```bash | ||
| WEBAPPNAME=az400eshoponweb$RANDOM$RANDOM | ||
| az webapp create --resource-group $RESOURCEGROUPNAME --plan $SERVICEPLANNAME --name $WEBAPPNAME | ||
| az webapp create --resource-group $RESOURCEGROUPNAME --plan $SERVICEPLANNAME --name $WEBAPPNAME --runtime "DOTNETCORE|10.0" |
| SUFFIX=$RANDOM$RANDOM | ||
| az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n RGATES$SUFFIX-DevTest | ||
| az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n RGATES$SUFFIX-Prod | ||
| az webapp create -g $RESOURCEGROUPNAME -p $SERVICEPLANNAME -n RGATES$SUFFIX-DevTest --runtime "DOTNETCORE|10.0" |
| ```bash | ||
| WEBAPPNAME=eshoponWebYAML$RANDOM$RANDOM | ||
| az webapp create --resource-group $RESOURCEGROUPNAME --plan $SERVICEPLANNAME --name $WEBAPPNAME | ||
| az webapp create --resource-group $RESOURCEGROUPNAME --plan $SERVICEPLANNAME --name $WEBAPPNAME --runtime "DOTNETCORE|10.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runtime is mandatory when creating an Azure WebApp using AZ CLI.